package com.witframework.plugin.lucene.searcher.impl;

import org.apache.lucene.document.Document;

import com.witframework.plugin.lucene.searcher.Searcher;


/**
 * 搜索器
 * 
 * 
 * 
 * @pdOid 1b1d4aef-982e-4fc8-836a-00edc6dbf474
 */
public abstract class AbstractSearcher implements Searcher {
	// 索引存放位置，可以指定多个索引存放位置
	protected String[] indexLocations;

	public void setIndexLocations(String[] indexLocations) {
		this.indexLocations = indexLocations;
	}
	protected String getHitViewString(Document document){
		String hitPattern=document.get("hitPattern");
		if(hitPattern==null)
			return document.get("abstracts");
		else{
			//根据资源的hit模式处理。
		}
		return "";
	}
}